// https://nuxt.com/docs/api/configuration/nuxt-config

export default defineNuxtConfig({
    //配置
    runtimeConfig:{
      public:{
          appid: process.env.NUXT_APPID,
          projectUrl: process.env.NUXT_PROJECT_URL
      }
    },

    imports: {
        // Auto-import pinia stores defined in `~/stores`
        dirs: ['stores']
    },
    devtools: {enabled: true},
    app: {
        head: {
            title: "迅颖",
            meta: [
                { name: 'keywords', content: '项目,资源,导航,网站' },
                { name: 'description', content: '致力于打造程序员的梦中情站' }
            ],
            link:[
                {rel:"icon",type:"image/x-icon",href:"favicon.ico"}
            ]
        },

    },

    modules: [
        '@element-plus/nuxt',
        '@pinia/nuxt',
        '@pinia-plugin-persistedstate/nuxt',
    ],
    pinia: {
        autoImports: [
            'defineStore', // import { defineStore } from 'pinia'
        ],
    },
    piniaPersistedstate: {
        storage: 'sessionStorage',
    },

    css: [
        'element-plus/dist/index.css',
        '@/assets/main.scss',
        'element-plus/theme-chalk/display.css',
        'md-editor-v3/lib/style.css',
        'vue3-video-play/dist/style.css'  // 添加这一行
    ],

    compatibilityDate: '2024-08-22',
})
